package ui;

import javax.swing.JSpinner;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;

import download.Download;

public class SpinnerListener implements ChangeListener
{

	@Override
	public void stateChanged(ChangeEvent arg0)
	{
		JSpinner s = (JSpinner) arg0.getSource();
		Download.setMaxAllowed((Integer) s.getValue());

	}

}
